package com.spring.core.factory;

/**
 * @author Zee
 * @version 1.0
 * @date 2021/11/1
 */
public class BeanFactory {
    public static <T> T getBean(Class<T> c) {
        try {
            return c.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return null;
    }
}
